<?php

/*include "key.php";
$host = $_SERVER['HTTP_HOST']; //domain, vi du: wwww.phalecaocap.com
if(strpos($host, "www") >= 0){
	$host = substr($host, 4);
}

$server_ip = $_SERVER['SERVER_ADDR'];
$salt = '$$#fdsDFDsfd84348fDF8f*d*934FD546';

$hash = md5("$server_ip$salt$host");
if($key != $hash){
	//die("Lisence error. Please contact <a href='http://www.imgroup.vn'>IM Group</a>!");
}*/
include "db.php";
include "class_mysql.php";

global $db, $FullUrl, $FullUrls;

$db = new class_mysql();

global $link;

$link = $db->db_connect($db_host, $db_user, $db_pass);

$db->db_select_db($db_name) || die("Could not connect to SQL db");

mysql_query("SET NAMES 'UTF8'");

$sql = "select * from constant where name = 'FullUrl'";

$FullUrls = $db->getRow($sql);

$FullUrl = $FullUrls['value_vn'];
//$FullUrl = "/timkhachsan.vn";

?>